home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000499 / patchSG0000499.idb / usr / include / abi / X11 / Intrinsic.h.z / Intrinsic.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  62.4 KB  |  2,788 lines

  1. /* $XConsortium: Intrinsic.h,v 1.175 92/03/02 16:43:31 converse Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.             All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XtIntrinsic_h
  28. #define _XtIntrinsic_h
  29.  
  30. #include    <X11/Xlib.h>
  31. #include    <X11/Xutil.h>
  32. #include    <X11/Xresource.h>
  33. #include    <X11/Xfuncproto.h>
  34. #ifdef XT_BC
  35. #include <X11/Xos.h>        /* for R4 compatibility */
  36. #else
  37. #include <X11/Xosdefs.h>
  38. #ifndef X_NOT_STDC_ENV
  39. #include <string.h>        /* for XtNewString */
  40. #else
  41. #ifdef SYSV
  42. #include <string.h>
  43. #else
  44. #include <strings.h>
  45. #endif /* SYSV else */
  46. #endif /* !X_NOT_STDC_ENV else */
  47. #endif /* XT_BC else */
  48.  
  49. #define XtSpecificationRelease 5
  50.  
  51. typedef char *String;
  52.  
  53. #if NeedFunctionPrototypes
  54.  
  55. /* We do this in order to get "const" declarations to work right.  We
  56.  * use _XtString instead of String so that C++ applications can
  57.  * #define String to something else if they choose, to avoid conflicts
  58.  * with other C++ libraries.
  59.  */
  60. #define _XtString char*
  61.  
  62. /* _Xt names are private to Xt implementation, do not use in client code */
  63. #if NeedWidePrototypes
  64. #define _XtBoolean    int
  65. #define _XtDimension    unsigned int
  66. #define _XtKeyCode    unsigned int
  67. #define _XtPosition    int
  68. #define _XtXtEnum    unsigned int
  69. #else
  70. #define _XtBoolean    Boolean
  71. #define _XtDimension    Dimension
  72. #define _XtKeyCode    KeyCode
  73. #define _XtPosition    Position
  74. #define _XtXtEnum    XtEnum
  75. #endif /* NeedWidePrototypes */
  76.  
  77. #endif /* NeedFunctionPrototypes */
  78.  
  79. #ifndef NULL
  80. #define NULL 0
  81. #endif
  82.  
  83. #ifdef VMS
  84. #define externalref globalref
  85. #define externaldef(psect) globaldef {"psect"} noshare
  86. #else
  87. #define externalref extern
  88. #define externaldef(psect)
  89. #endif /* VMS */
  90.  
  91. #ifndef FALSE
  92. #define FALSE 0
  93. #define TRUE 1
  94. #endif
  95.  
  96. #define XtNumber(arr)        ((Cardinal) (sizeof(arr) / sizeof(arr[0])))
  97.  
  98. typedef struct _WidgetRec *Widget;
  99. typedef Widget *WidgetList;
  100. typedef struct _WidgetClassRec *WidgetClass;
  101. typedef struct _CompositeRec *CompositeWidget;
  102. typedef struct _XtActionsRec *XtActionList;
  103. typedef struct _XtEventRec *XtEventTable;
  104.  
  105. typedef struct _XtAppStruct *XtAppContext;
  106. typedef unsigned long    XtValueMask;
  107. typedef unsigned long    XtIntervalId;
  108. typedef unsigned long    XtInputId;
  109. typedef unsigned long    XtWorkProcId;
  110. typedef unsigned int    XtGeometryMask;
  111. typedef unsigned long    XtGCMask;   /* Mask of values that are used by widget*/
  112. typedef unsigned long    Pixel;        /* Index into colormap        */
  113. typedef int        XtCacheType;
  114. #define            XtCacheNone      0x001
  115. #define            XtCacheAll      0x002
  116. #define            XtCacheByDisplay  0x003
  117. #define            XtCacheRefCount      0x100
  118.  
  119. /****************************************************************
  120.  *
  121.  * System Dependent Definitions; see spec for specific range
  122.  * requirements.  Do not assume every implementation uses the
  123.  * same base types!
  124.  *
  125.  *
  126.  * XtArgVal ought to be a union of XtPointer, char *, long, int *, and proc *
  127.  * but casting to union types is not really supported.
  128.  *
  129.  * So the typedef for XtArgVal should be chosen such that
  130.  *
  131.  *    sizeof (XtArgVal) >=    sizeof(XtPointer)
  132.  *                sizeof(char *)
  133.  *                sizeof(long)
  134.  *                sizeof(int *)
  135.  *                sizeof(proc *)
  136.  *
  137.  * ArgLists rely heavily on the above typedef.
  138.  *
  139.  ****************************************************************/
  140. #ifdef CRAY
  141. typedef long        Boolean;
  142. typedef char*        XtArgVal;
  143. typedef long        XtEnum;
  144. #else
  145. typedef char        Boolean;
  146. typedef long        XtArgVal;
  147. typedef unsigned char    XtEnum;
  148. #endif
  149.  
  150. typedef unsigned int    Cardinal;
  151. typedef unsigned short    Dimension;  /* Size in pixels            */
  152. typedef short        Position;   /* Offset from 0 coordinate        */
  153.  
  154. #if NeedFunctionPrototypes
  155. typedef void*        XtPointer;
  156. #else
  157. typedef char*        XtPointer;
  158. #endif
  159.  
  160. /* The type Opaque is NOT part of the Xt standard, do NOT use it. */
  161. /* (It remains here only for backward compatibility.) */
  162. typedef XtPointer    Opaque;
  163.  
  164. #include <X11/Core.h>
  165. #include <X11/Composite.h>
  166. #include <X11/Constraint.h>
  167. #include <X11/Object.h>
  168. #include <X11/RectObj.h>
  169.  
  170. typedef struct _TranslationData *XtTranslations;
  171. typedef struct _TranslationData *XtAccelerators;
  172. typedef unsigned int Modifiers;
  173.  
  174. typedef void (*XtActionProc)(
  175. #if NeedFunctionPrototypes
  176.     Widget         /* widget */,
  177.     XEvent*        /* event */,
  178.     String*        /* params */,
  179.     Cardinal*        /* num_params */
  180. #endif
  181. );
  182.  
  183. typedef XtActionProc* XtBoundActions;
  184.  
  185. typedef struct _XtActionsRec{
  186.     String     string;
  187.     XtActionProc proc;
  188. } XtActionsRec;
  189.  
  190. typedef enum {
  191. /* address mode        parameter representation    */
  192. /* ------------        ------------------------    */
  193.     XtAddress,        /* address            */
  194.     XtBaseOffset,    /* offset            */
  195.     XtImmediate,    /* constant            */
  196.     XtResourceString,    /* resource name string        */
  197.     XtResourceQuark,    /* resource name quark        */
  198.     XtWidgetBaseOffset,    /* offset from ancestor        */
  199.     XtProcedureArg    /* procedure to invoke        */
  200. } XtAddressMode;
  201.  
  202. typedef struct {
  203.     XtAddressMode   address_mode;
  204.     XtPointer        address_id;
  205.     Cardinal        size;
  206. } XtConvertArgRec, *XtConvertArgList;
  207.  
  208. typedef void (*XtConvertArgProc)(
  209. #if NeedFunctionPrototypes
  210.     Widget         /* widget */,
  211.     Cardinal*        /* size */,
  212.     XrmValue*        /* value */
  213. #endif
  214. );
  215.  
  216. typedef struct {
  217.     XtGeometryMask request_mode;
  218.     Position x, y;
  219.     Dimension width, height, border_width;
  220.     Widget sibling;
  221.     int stack_mode;   /* Above, Below, TopIf, BottomIf, Opposite, DontChange */
  222. } XtWidgetGeometry;
  223.  
  224. /* Additions to Xlib geometry requests: ask what would happen, don't do it */
  225. #define XtCWQueryOnly    (1 << 7)
  226.  
  227. /* Additions to Xlib stack modes: don't change stack order */
  228. #define XtSMDontChange    5
  229.  
  230. typedef void (*XtConverter)( /* obsolete */
  231. #if NeedFunctionPrototypes
  232.     XrmValue*        /* args */,
  233.     Cardinal*        /* num_args */,
  234.     XrmValue*        /* from */,
  235.     XrmValue*        /* to */
  236. #endif
  237. );
  238.  
  239. typedef Boolean (*XtTypeConverter)(
  240. #if NeedFunctionPrototypes
  241.     Display*        /* dpy */,
  242.     XrmValue*        /* args */,
  243.     Cardinal*        /* num_args */,
  244.     XrmValue*        /* from */,
  245.     XrmValue*        /* to */,
  246.     XtPointer*        /* converter_data */
  247. #endif
  248. );
  249.  
  250. typedef void (*XtDestructor)(
  251. #if NeedFunctionPrototypes
  252.     XtAppContext    /* app */,
  253.     XrmValue*        /* to */,
  254.     XtPointer         /* converter_data */,
  255.     XrmValue*        /* args */,
  256.     Cardinal*        /* num_args */
  257. #endif
  258. );
  259.  
  260. typedef Opaque XtCacheRef;
  261.  
  262. typedef Opaque XtActionHookId;
  263.  
  264. typedef void (*XtActionHookProc)(
  265. #if NeedFunctionPrototypes
  266.     Widget        /* w */,
  267.     XtPointer        /* client_data */,
  268.     String        /* action_name */,
  269.     XEvent*        /* event */,
  270.     String*        /* params */,
  271.     Cardinal*        /* num_params */
  272. #endif
  273. );
  274.  
  275. typedef void (*XtKeyProc)(
  276. #if NeedFunctionPrototypes
  277.     Display*        /* dpy */,
  278.     _XtKeyCode         /* keycode */,
  279.     Modifiers        /* modifiers */,
  280.     Modifiers*        /* modifiers_return */,
  281.     KeySym*        /* keysym_return */
  282. #endif
  283. );
  284.  
  285. typedef void (*XtCaseProc)(
  286. #if NeedFunctionPrototypes
  287.     Display*        /* display */,
  288.     KeySym        /* keysym */,
  289.     KeySym*        /* lower_return */,
  290.     KeySym*        /* upper_return */
  291. #endif
  292. );
  293.  
  294. typedef void (*XtEventHandler)(
  295. #if NeedFunctionPrototypes
  296.     Widget         /* widget */,
  297.     XtPointer         /* closure */,
  298.     XEvent*        /* event */,
  299.     Boolean*        /* continue_to_dispatch */
  300. #endif
  301. );
  302. typedef unsigned long EventMask;
  303.  
  304. typedef enum {XtListHead, XtListTail } XtListPosition;
  305.  
  306. typedef unsigned long    XtInputMask;
  307. #define XtInputNoneMask        0L
  308. #define XtInputReadMask        (1L<<0)
  309. #define XtInputWriteMask    (1L<<1)
  310. #define XtInputExceptMask    (1L<<2)
  311.  
  312. typedef void (*XtTimerCallbackProc)(
  313. #if NeedFunctionPrototypes
  314.     XtPointer         /* closure */,
  315.     XtIntervalId*    /* id */
  316. #endif
  317. );
  318.  
  319. typedef void (*XtInputCallbackProc)(
  320. #if NeedFunctionPrototypes
  321.     XtPointer         /* closure */,
  322.     int*        /* source */,
  323.     XtInputId*        /* id */
  324. #endif
  325. );
  326.  
  327. typedef struct {
  328.     String    name;
  329.     XtArgVal    value;
  330. } Arg, *ArgList;
  331.  
  332. typedef XtPointer    XtVarArgsList;
  333.  
  334. typedef void (*XtCallbackProc)(
  335. #if NeedFunctionPrototypes
  336.     Widget         /* widget */,
  337.     XtPointer         /* closure */,    /* data the application registered */
  338.     XtPointer         /* call_data */    /* callback specific data */
  339. #endif
  340. );
  341.  
  342. typedef struct _XtCallbackRec {
  343.     XtCallbackProc  callback;
  344.     XtPointer        closure;
  345. } XtCallbackRec, *XtCallbackList;
  346.  
  347. typedef enum {
  348.     XtCallbackNoList,
  349.     XtCallbackHasNone,
  350.     XtCallbackHasSome
  351. } XtCallbackStatus;
  352.  
  353. typedef enum  {
  354.     XtGeometryYes,      /* Request accepted. */
  355.     XtGeometryNo,      /* Request denied. */
  356.     XtGeometryAlmost,      /* Request denied, but willing to take replyBox. */
  357.     XtGeometryDone      /* Request accepted and done. */
  358. } XtGeometryResult;
  359.  
  360. typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive} XtGrabKind;
  361.  
  362. typedef struct {
  363.     Widget  shell_widget;
  364.     Widget  enable_widget;
  365. } XtPopdownIDRec, *XtPopdownID;
  366.  
  367. typedef struct _XtResource {
  368.     String    resource_name;    /* Resource name                */
  369.     String    resource_class;    /* Resource class                */
  370.     String    resource_type;    /* Representation type desired            */
  371.     Cardinal    resource_size;    /* Size in bytes of representation        */
  372.     Cardinal    resource_offset;/* Offset from base to put resource value   */
  373.     String    default_type;    /* representation type of specified default */
  374.     XtPointer    default_addr;    /* Address of default resource            */
  375. } XtResource, *XtResourceList;
  376.  
  377. typedef void (*XtResourceDefaultProc)(
  378. #if NeedFunctionPrototypes
  379.     Widget    /* widget */,
  380.     int        /* offset */,
  381.     XrmValue*    /* value */
  382. #endif
  383. );
  384.  
  385. typedef String (*XtLanguageProc)(
  386. #if NeedFunctionPrototypes
  387.     Display*    /* dpy */,
  388.     String    /* xnl */,
  389.     XtPointer    /* client_data */
  390. #endif
  391. );
  392.  
  393. typedef void (*XtErrorMsgHandler)(
  394. #if NeedFunctionPrototypes
  395.     String         /* name */,
  396.     String        /* type */,
  397.     String        /* class */,
  398.     String        /* default */,
  399.     String*        /* params */,
  400.     Cardinal*        /* num_params */
  401. #endif
  402. );
  403.  
  404. typedef void (*XtErrorHandler)(
  405. #if NeedFunctionPrototypes
  406.   String        /* msg */
  407. #endif
  408. );
  409.  
  410. typedef void (*XtCreatePopupChildProc)(
  411. #if NeedFunctionPrototypes
  412.     Widget    /* shell */
  413. #endif
  414. );
  415.  
  416. typedef Boolean (*XtWorkProc)(
  417. #if NeedFunctionPrototypes
  418.     XtPointer         /* closure */    /* data the application registered */
  419. #endif
  420. );
  421.  
  422. typedef struct {
  423.     char match;
  424.     String substitution;
  425. } SubstitutionRec, *Substitution;
  426.  
  427. typedef Boolean (*XtFilePredicate)(
  428. #if NeedFunctionPrototypes
  429.    String /* filename */
  430. #endif
  431. );
  432.  
  433. typedef XtPointer XtRequestId;
  434.  
  435. typedef Boolean (*XtConvertSelectionProc)(
  436. #if NeedFunctionPrototypes
  437.     Widget         /* widget */,
  438.     Atom*        /* selection */,
  439.     Atom*        /* target */,
  440.     Atom*        /* type_return */,
  441.     XtPointer*        /* value_return */,
  442.     unsigned long*    /* length_return */,
  443.     int*        /* format_return */
  444. #endif
  445. );
  446.  
  447. typedef void (*XtLoseSelectionProc)(
  448. #if NeedFunctionPrototypes
  449.     Widget         /* widget */,
  450.     Atom*        /* selection */
  451. #endif
  452. );
  453.  
  454. typedef void (*XtSelectionDoneProc)(
  455. #if NeedFunctionPrototypes
  456.     Widget         /* widget */,
  457.     Atom*        /* selection */,
  458.     Atom*        /* target */
  459. #endif
  460. );
  461.  
  462. typedef void (*XtSelectionCallbackProc)(
  463. #if NeedFunctionPrototypes
  464.     Widget         /* widget */,
  465.     XtPointer         /* closure */,
  466.     Atom*        /* selection */,
  467.     Atom*        /* type */,
  468.     XtPointer         /* value */,
  469.     unsigned long*    /* length */,
  470.     int*        /* format */
  471. #endif
  472. );
  473.  
  474. typedef void (*XtLoseSelectionIncrProc)(
  475. #if NeedFunctionPrototypes
  476.     Widget         /* widget */,
  477.     Atom*        /* selection */,
  478.     XtPointer         /* client_data */
  479. #endif
  480. );
  481.  
  482. typedef void (*XtSelectionDoneIncrProc)(
  483. #if NeedFunctionPrototypes
  484.     Widget         /* widget */,
  485.     Atom*        /* selection */,
  486.     Atom*        /* target */,
  487.     XtRequestId*    /* receiver_id */,
  488.     XtPointer         /* client_data */
  489. #endif
  490. );
  491.  
  492. typedef Boolean (*XtConvertSelectionIncrProc)(
  493. #if NeedFunctionPrototypes
  494.     Widget         /* widget */,
  495.     Atom*        /* selection */,
  496.     Atom*        /* target */,
  497.     Atom*        /* type */,
  498.     XtPointer*        /* value */,
  499.     unsigned long*    /* length */,
  500.     int*        /* format */,
  501.     unsigned long*    /* max_length */,
  502.     XtPointer         /* client_data */,
  503.     XtRequestId*    /* receiver_id */
  504. #endif
  505. );
  506.  
  507. typedef void (*XtCancelConvertSelectionProc)(
  508. #if NeedFunctionPrototypes
  509.     Widget         /* widget */,
  510.     Atom*        /* selection */,
  511.     Atom*        /* target */,
  512.     XtRequestId*    /* receiver_id */,
  513.     XtPointer         /* client_data */
  514. #endif
  515. );
  516.  
  517. /***************************************************************
  518.  *
  519.  * Exported Interfaces
  520.  *
  521.  ****************************************************************/
  522.  
  523. _XFUNCPROTOBEGIN
  524.  
  525. extern Boolean XtConvertAndStore(
  526. #if NeedFunctionPrototypes
  527.     Widget         /* widget */,
  528.     _Xconst _XtString     /* from_type */,
  529.     XrmValue*        /* from */,
  530.     _Xconst _XtString     /* to_type */,
  531.     XrmValue*        /* to_in_out */
  532. #endif
  533. );
  534.  
  535. extern Boolean XtCallConverter(
  536. #if NeedFunctionPrototypes
  537.     Display*        /* dpy */,
  538.     XtTypeConverter     /* converter */,
  539.     XrmValuePtr     /* args */,
  540.     Cardinal         /* num_args */,
  541.     XrmValuePtr     /* from */,
  542.     XrmValue*        /* to_in_out */,
  543.     XtCacheRef*        /* cache_ref_return */
  544. #endif
  545. );
  546.  
  547. extern Boolean XtDispatchEvent(
  548. #if NeedFunctionPrototypes
  549.     XEvent*         /* event */
  550. #endif
  551. );
  552.  
  553. extern Boolean XtCallAcceptFocus(
  554. #if NeedFunctionPrototypes
  555.     Widget         /* widget */,
  556.     Time*        /* time */
  557. #endif
  558. );
  559.  
  560. extern Boolean XtPeekEvent( /* obsolete */
  561. #if NeedFunctionPrototypes
  562.     XEvent*        /* event_return */
  563. #endif
  564. );
  565.  
  566. extern Boolean XtAppPeekEvent(
  567. #if NeedFunctionPrototypes
  568.     XtAppContext     /* app_context */,
  569.     XEvent*        /* event_return */
  570. #endif
  571. );
  572.  
  573. extern Boolean XtIsSubclass(
  574. #if NeedFunctionPrototypes
  575.     Widget         /* widget */,
  576.     WidgetClass     /* widgetClass */
  577. #endif
  578. );
  579.  
  580. extern Boolean XtIsObject(
  581. #if NeedFunctionPrototypes
  582.     Widget         /* object */
  583. #endif
  584. );
  585.  
  586. extern Boolean _XtCheckSubclassFlag( /* implementation-private */
  587. #if NeedFunctionPrototypes
  588.     Widget        /* object */,
  589.     _XtXtEnum        /* type_flag */
  590. #endif
  591. );
  592.  
  593. extern Boolean _XtIsSubclassOf( /* implementation-private */
  594. #if NeedFunctionPrototypes
  595.     Widget        /* object */,
  596.     WidgetClass        /* widget_class */,
  597.     WidgetClass        /* flag_class */,
  598.     _XtXtEnum        /* type_flag */
  599. #endif
  600. );
  601.  
  602. extern Boolean XtIsManaged(
  603. #if NeedFunctionPrototypes
  604.     Widget         /* rectobj */
  605. #endif
  606. );
  607.  
  608. extern Boolean XtIsRealized(
  609. #if NeedFunctionPrototypes
  610.     Widget         /* widget */
  611. #endif
  612. );
  613.  
  614. extern Boolean XtIsSensitive(
  615. #if NeedFunctionPrototypes
  616.     Widget         /* widget */
  617. #endif
  618. );
  619.  
  620. extern Boolean XtOwnSelection(
  621. #if NeedFunctionPrototypes
  622.     Widget         /* widget */,
  623.     Atom         /* selection */,
  624.     Time         /* time */,
  625.     XtConvertSelectionProc /* convert */,
  626.     XtLoseSelectionProc    /* lose */,
  627.     XtSelectionDoneProc /* done */
  628. #endif
  629. );
  630.  
  631. extern Boolean XtOwnSelectionIncremental(
  632. #if NeedFunctionPrototypes
  633.     Widget         /* widget */,
  634.     Atom         /* selection */,
  635.     Time         /* time */,
  636.     XtConvertSelectionIncrProc    /* convert_callback */,
  637.     XtLoseSelectionIncrProc    /* lose_callback */,
  638.     XtSelectionDoneIncrProc    /* done_callback */,
  639.     XtCancelConvertSelectionProc /* cancel_callback */,
  640.     XtPointer         /* client_data */
  641. #endif
  642. );
  643.  
  644. extern XtGeometryResult XtMakeResizeRequest(
  645. #if NeedFunctionPrototypes
  646.     Widget         /* widget */,
  647.     _XtDimension    /* width */,
  648.     _XtDimension    /* height */,
  649.     Dimension*        /* width_return */,
  650.     Dimension*        /* height_return */
  651. #endif
  652. );
  653.  
  654. extern void XtTranslateCoords(
  655. #if NeedFunctionPrototypes
  656.     Widget         /* widget */,
  657.     _XtPosition        /* x */,
  658.     _XtPosition        /* y */,
  659.     Position*        /* rootx_return */,
  660.     Position*        /* rooty_return */
  661. #endif
  662. );
  663.  
  664. extern KeySym* XtGetKeysymTable(
  665. #if NeedFunctionPrototypes
  666.     Display*        /* dpy */,
  667.     KeyCode*        /* min_keycode_return */,
  668.     int*        /* keysyms_per_keycode_return */
  669. #endif
  670. );
  671.  
  672. extern void XtKeysymToKeycodeList(
  673. #if NeedFunctionPrototypes
  674.     Display*        /* dpy */,
  675.     KeySym         /* keysym */,
  676.     KeyCode**        /* keycodes_return */,
  677.     Cardinal*        /* keycount_return */
  678. #endif
  679. );
  680.  
  681. extern void XtStringConversionWarning( /* obsolete */
  682. #if NeedFunctionPrototypes
  683.     _Xconst _XtString    /* from_value */,
  684.     _Xconst _XtString    /* to_type */
  685. #endif
  686. );
  687.  
  688. extern void XtDisplayStringConversionWarning(
  689. #if NeedFunctionPrototypes
  690.     Display*         /* dpy */,
  691.     _Xconst _XtString    /* from_value */,
  692.     _Xconst _XtString    /* to_type */
  693. #endif
  694. );
  695.  
  696. #if __STDC__
  697. externalref XtConvertArgRec const colorConvertArgs[];
  698. externalref XtConvertArgRec const screenConvertArg[];
  699. #else
  700. externalref XtConvertArgRec colorConvertArgs[];
  701. externalref XtConvertArgRec screenConvertArg[];
  702. #endif
  703.  
  704. extern void XtAppAddConverter( /* obsolete */
  705. #if NeedFunctionPrototypes
  706.     XtAppContext    /* app_context */,
  707.     _Xconst _XtString    /* from_type */,
  708.     _Xconst _XtString    /* to_type */,
  709.     XtConverter     /* converter */,
  710.     XtConvertArgList    /* convert_args */,
  711.     Cardinal         /* num_args */
  712. #endif
  713. );
  714.  
  715. extern void XtAddConverter( /* obsolete */
  716. #if NeedFunctionPrototypes
  717.     _Xconst _XtString    /* from_type */,
  718.     _Xconst _XtString     /* to_type */,
  719.     XtConverter     /* converter */,
  720.     XtConvertArgList     /* convert_args */,
  721.     Cardinal         /* num_args */
  722. #endif
  723. );
  724.  
  725. extern void XtSetTypeConverter(
  726. #if NeedFunctionPrototypes
  727.     _Xconst _XtString     /* from_type */,
  728.     _Xconst _XtString     /* to_type */,
  729.     XtTypeConverter     /* converter */,
  730.     XtConvertArgList     /* convert_args */,
  731.     Cardinal         /* num_args */,
  732.     XtCacheType     /* cache_type */,
  733.     XtDestructor     /* destructor */
  734. #endif
  735. );
  736.  
  737. extern void XtAppSetTypeConverter(
  738. #if NeedFunctionPrototypes
  739.     XtAppContext     /* app_context */,
  740.     _Xconst _XtString     /* from_type */,
  741.     _Xconst _XtString     /* to_type */,
  742.     XtTypeConverter     /* converter */,
  743.     XtConvertArgList     /* convert_args */,
  744.     Cardinal         /* num_args */,
  745.     XtCacheType     /* cache_type */,
  746.     XtDestructor     /* destructor */
  747. #endif
  748. );
  749.  
  750. extern void XtConvert( /* obsolete */
  751. #if NeedFunctionPrototypes
  752.     Widget         /* widget */,
  753.     _Xconst _XtString     /* from_type */,
  754.     XrmValue*        /* from */,
  755.     _Xconst _XtString     /* to_type */,
  756.     XrmValue*        /* to_return */
  757. #endif
  758. );
  759.  
  760. extern void XtDirectConvert( /* obsolete */
  761. #if NeedFunctionPrototypes
  762.     XtConverter     /* converter */,
  763.     XrmValuePtr     /* args */,
  764.     Cardinal         /* num_args */,
  765.     XrmValuePtr     /* from */,
  766.     XrmValue*        /* to_return */
  767. #endif
  768. );
  769.  
  770. /****************************************************************
  771.  *
  772.  * Translation Management
  773.  *
  774.  ****************************************************************/
  775.  
  776. extern XtTranslations XtParseTranslationTable(
  777. #if NeedFunctionPrototypes
  778.     _Xconst _XtString    /* table */
  779. #endif
  780. );
  781.  
  782. extern XtAccelerators XtParseAcceleratorTable(
  783. #if NeedFunctionPrototypes
  784.     _Xconst _XtString    /* source */
  785. #endif
  786. );
  787.  
  788. extern void XtOverrideTranslations(
  789. #if NeedFunctionPrototypes
  790.     Widget         /* widget */,
  791.     XtTranslations     /* translations */
  792. #endif
  793. );
  794.  
  795. extern void XtAugmentTranslations(
  796. #if NeedFunctionPrototypes
  797.     Widget         /* widget */,
  798.     XtTranslations     /* translations */
  799. #endif
  800. );
  801.  
  802. extern void XtInstallAccelerators(
  803. #if NeedFunctionPrototypes
  804.     Widget         /* destination */,
  805.     Widget        /* source */
  806. #endif
  807. );
  808.  
  809. extern void XtInstallAllAccelerators(
  810. #if NeedFunctionPrototypes
  811.     Widget         /* destination */,
  812.     Widget        /* source */
  813. #endif
  814. );
  815.  
  816. extern void XtUninstallTranslations(
  817. #if NeedFunctionPrototypes
  818.     Widget         /* widget */
  819. #endif
  820. );
  821.  
  822. extern void XtAppAddActions(
  823. #if NeedFunctionPrototypes
  824.     XtAppContext     /* app_context */,
  825.     XtActionList     /* actions */,
  826.     Cardinal         /* num_actions */
  827. #endif
  828. );
  829.  
  830. extern void XtAddActions( /* obsolete */
  831. #if NeedFunctionPrototypes
  832.     XtActionList     /* actions */,
  833.     Cardinal         /* num_actions */
  834. #endif
  835. );
  836.  
  837. extern XtActionHookId XtAppAddActionHook(
  838. #if NeedFunctionPrototypes
  839.     XtAppContext     /* app_context */,
  840.     XtActionHookProc     /* proc */,
  841.     XtPointer         /* client_data */
  842. #endif
  843. );
  844.  
  845. extern void XtRemoveActionHook(
  846. #if NeedFunctionPrototypes
  847.     XtActionHookId     /* id */
  848. #endif
  849. );
  850.  
  851. extern void XtGetActionList(
  852. #if NeedFunctionPrototypes
  853.     WidgetClass        /* widget_class */,
  854.     XtActionList*    /* actions_return */,
  855.     Cardinal*        /* num_actions_return */
  856. #endif
  857. );
  858.  
  859. extern void XtCallActionProc(
  860. #if NeedFunctionPrototypes
  861.     Widget        /* widget */,
  862.     _Xconst _XtString    /* action */,
  863.     XEvent*        /* event */,
  864.     String*        /* params */,
  865.     Cardinal        /* num_params */
  866. #endif
  867. );
  868.  
  869. extern void XtRegisterGrabAction(
  870. #if NeedFunctionPrototypes
  871.     XtActionProc     /* action_proc */,
  872.     _XtBoolean         /* owner_events */,
  873.     unsigned int     /* event_mask */,
  874.     int            /* pointer_mode */,
  875.     int             /* keyboard_mode */
  876. #endif
  877. );
  878.  
  879. extern void XtSetMultiClickTime(
  880. #if NeedFunctionPrototypes
  881.     Display*        /* dpy */,
  882.     int         /* milliseconds */
  883. #endif
  884. );
  885.  
  886. extern int XtGetMultiClickTime(
  887. #if NeedFunctionPrototypes
  888.     Display*        /* dpy */
  889. #endif
  890. );
  891.  
  892. extern KeySym XtGetActionKeysym(
  893. #if NeedFunctionPrototypes
  894.     XEvent*        /* event */,
  895.     Modifiers*        /* modifiers_return */
  896. #endif
  897. );
  898.  
  899. /***************************************************************
  900.  *
  901.  * Keycode and Keysym procedures for translation management
  902.  *
  903.  ****************************************************************/
  904.  
  905. extern void XtTranslateKeycode(
  906. #if NeedFunctionPrototypes
  907.     Display*        /* dpy */,
  908.     _XtKeyCode         /* keycode */,
  909.     Modifiers         /* modifiers */,
  910.     Modifiers*        /* modifiers_return */,
  911.     KeySym*        /* keysym_return */
  912. #endif
  913. );
  914.  
  915. extern void XtTranslateKey(
  916. #if NeedFunctionPrototypes
  917.     Display*        /* dpy */,
  918.     _XtKeyCode        /* keycode */,
  919.     Modifiers        /* modifiers */,
  920.     Modifiers*        /* modifiers_return */,
  921.     KeySym*        /* keysym_return */
  922. #endif
  923. );
  924.  
  925. extern void XtSetKeyTranslator(
  926. #if NeedFunctionPrototypes
  927.     Display*        /* dpy */,
  928.     XtKeyProc         /* proc */
  929. #endif
  930. );
  931.  
  932. extern void XtRegisterCaseConverter(
  933. #if NeedFunctionPrototypes
  934.     Display*        /* dpy */,
  935.     XtCaseProc         /* proc */,
  936.     KeySym         /* start */,
  937.     KeySym         /* stop */
  938. #endif
  939. );
  940.  
  941. extern void XtConvertCase(
  942. #if NeedFunctionPrototypes
  943.     Display*        /* dpy */,
  944.     KeySym         /* keysym */,
  945.     KeySym*        /* lower_return */,
  946.     KeySym*        /* upper_return */
  947. #endif
  948. );
  949.  
  950. /****************************************************************
  951.  *
  952.  * Event Management
  953.  *
  954.  ****************************************************************/
  955.  
  956. /* XtAllEvents is valid only for XtRemoveEventHandler and
  957.  * XtRemoveRawEventHandler; don't use it to select events!
  958.  */
  959. #define XtAllEvents ((EventMask) -1L)
  960.  
  961. extern void XtAddEventHandler(
  962. #if NeedFunctionPrototypes
  963.     Widget         /* widget */,
  964.     EventMask         /* event_mask */,
  965.     _XtBoolean         /* nonmaskable */,
  966.     XtEventHandler     /* proc */,
  967.     XtPointer         /* closure */
  968. #endif
  969. );
  970.  
  971. extern void XtRemoveEventHandler(
  972. #if NeedFunctionPrototypes
  973.     Widget         /* widget */,
  974.     EventMask         /* event_mask */,
  975.     _XtBoolean         /* nonmaskable */,
  976.     XtEventHandler     /* proc */,
  977.     XtPointer         /* closure */
  978. #endif
  979. );
  980.  
  981. extern void XtAddRawEventHandler(
  982. #if NeedFunctionPrototypes
  983.     Widget         /* widget */,
  984.     EventMask         /* event_mask */,
  985.     _XtBoolean         /* nonmaskable */,
  986.     XtEventHandler     /* proc */,
  987.     XtPointer         /* closure */
  988. #endif
  989. );
  990.  
  991. extern void XtRemoveRawEventHandler(
  992. #if NeedFunctionPrototypes
  993.     Widget         /* widget */,
  994.     EventMask         /* event_mask */,
  995.     _XtBoolean         /* nonmaskable */,
  996.     XtEventHandler     /* proc */,
  997.     XtPointer         /* closure */
  998. #endif
  999. );
  1000.  
  1001. extern void XtInsertEventHandler(
  1002. #if NeedFunctionPrototypes
  1003.     Widget         /* widget */,
  1004.     EventMask         /* event_mask */,
  1005.     _XtBoolean         /* nonmaskable */,
  1006.     XtEventHandler     /* proc */,
  1007.     XtPointer         /* closure */,
  1008.     XtListPosition     /* position */
  1009. #endif
  1010. );
  1011.  
  1012. extern void XtInsertRawEventHandler(
  1013. #if NeedFunctionPrototypes
  1014.     Widget         /* widget */,
  1015.     EventMask         /* event_mask */,
  1016.     _XtBoolean         /* nonmaskable */,
  1017.     XtEventHandler     /* proc */,
  1018.     XtPointer         /* closure */,
  1019.     XtListPosition     /* position */
  1020. #endif
  1021. );
  1022.  
  1023. extern EventMask XtBuildEventMask(
  1024. #if NeedFunctionPrototypes
  1025.     Widget         /* widget */
  1026. #endif
  1027. );
  1028.  
  1029. extern void XtAddGrab(
  1030. #if NeedFunctionPrototypes
  1031.     Widget         /* widget */,
  1032.     _XtBoolean         /* exclusive */,
  1033.     _XtBoolean         /* spring_loaded */
  1034. #endif
  1035. );
  1036.  
  1037. extern void XtRemoveGrab(
  1038. #if NeedFunctionPrototypes
  1039.     Widget         /* widget */
  1040. #endif
  1041. );
  1042.  
  1043. extern void XtProcessEvent( /* obsolete */
  1044. #if NeedFunctionPrototypes
  1045.     XtInputMask         /* mask */
  1046. #endif
  1047. );
  1048.  
  1049. extern void XtAppProcessEvent(
  1050. #if NeedFunctionPrototypes
  1051.     XtAppContext         /* app_context */,
  1052.     XtInputMask         /* mask */
  1053. #endif
  1054. );
  1055.  
  1056. extern void XtMainLoop( /* obsolete */
  1057. #if NeedFunctionPrototypes
  1058.     void
  1059. #endif
  1060. );
  1061.  
  1062. extern void XtAppMainLoop(
  1063. #if NeedFunctionPrototypes
  1064.     XtAppContext         /* app_context */
  1065. #endif
  1066. );
  1067.  
  1068. extern void XtAddExposureToRegion(
  1069. #if NeedFunctionPrototypes
  1070.     XEvent*        /* event */,
  1071.     Region         /* region */
  1072. #endif
  1073. );
  1074.  
  1075. extern void XtSetKeyboardFocus(
  1076. #if NeedFunctionPrototypes
  1077.     Widget        /* subtree */,
  1078.     Widget         /* descendent */
  1079. #endif
  1080. );
  1081.  
  1082. extern Time XtLastTimestampProcessed(
  1083. #if NeedFunctionPrototypes
  1084.     Display*        /* dpy */
  1085. #endif
  1086. );
  1087.  
  1088. /****************************************************************
  1089.  *
  1090.  * Event Gathering Routines
  1091.  *
  1092.  ****************************************************************/
  1093.  
  1094. extern XtIntervalId XtAddTimeOut( /* obsolete */
  1095. #if NeedFunctionPrototypes
  1096.     unsigned long     /* interval */,
  1097.     XtTimerCallbackProc /* proc */,
  1098.     XtPointer         /* closure */
  1099. #endif
  1100. );
  1101.  
  1102. extern XtIntervalId XtAppAddTimeOut(
  1103. #if NeedFunctionPrototypes
  1104.     XtAppContext     /* app_context */,
  1105.     unsigned long     /* interval */,
  1106.     XtTimerCallbackProc /* proc */,
  1107.     XtPointer         /* closure */
  1108. #endif
  1109. );
  1110.  
  1111. extern void XtRemoveTimeOut(
  1112. #if NeedFunctionPrototypes
  1113.     XtIntervalId     /* timer */
  1114. #endif
  1115. );
  1116.  
  1117. extern XtInputId XtAddInput( /* obsolete */
  1118. #if NeedFunctionPrototypes
  1119.     int         /* source */,
  1120.     XtPointer         /* condition */,
  1121.     XtInputCallbackProc /* proc */,
  1122.     XtPointer         /* closure */
  1123. #endif
  1124. );
  1125.  
  1126. extern XtInputId XtAppAddInput(
  1127. #if NeedFunctionPrototypes
  1128.     XtAppContext           /* app_context */,
  1129.     int         /* source */,
  1130.     XtPointer         /* condition */,
  1131.     XtInputCallbackProc /* proc */,
  1132.     XtPointer         /* closure */
  1133. #endif
  1134. );
  1135.  
  1136. extern void XtRemoveInput(
  1137. #if NeedFunctionPrototypes
  1138.     XtInputId         /* id */
  1139. #endif
  1140. );
  1141.  
  1142. extern void XtNextEvent( /* obsolete */
  1143. #if NeedFunctionPrototypes
  1144.     XEvent*         /* event */
  1145. #endif
  1146. );
  1147.  
  1148. extern void XtAppNextEvent(
  1149. #if NeedFunctionPrototypes
  1150.     XtAppContext     /* app_context */,
  1151.     XEvent*        /* event_return */
  1152. #endif
  1153. );
  1154.  
  1155. #define XtIMXEvent        1
  1156. #define XtIMTimer        2
  1157. #define XtIMAlternateInput    4
  1158. #define XtIMAll (XtIMXEvent | XtIMTimer | XtIMAlternateInput)
  1159.  
  1160. extern XtInputMask XtPending( /* obsolete */
  1161. #if NeedFunctionPrototypes
  1162.     void
  1163. #endif
  1164. );
  1165.  
  1166. extern XtInputMask XtAppPending(
  1167. #if NeedFunctionPrototypes
  1168.     XtAppContext     /* app_context */
  1169. #endif
  1170. );
  1171.  
  1172. /****************************************************************
  1173.  *
  1174.  * Random utility routines
  1175.  *
  1176.  ****************************************************************/
  1177.  
  1178. #define XtIsRectObj(object)    (_XtCheckSubclassFlag(object, (XtEnum)0x02))
  1179. #define XtIsWidget(object)    (_XtCheckSubclassFlag(object, (XtEnum)0x04))
  1180. #define XtIsComposite(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x08))
  1181. #define XtIsConstraint(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x10))
  1182. #define XtIsShell(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x20))
  1183. #define XtIsOverrideShell(widget) \
  1184.     (_XtIsSubclassOf(widget, (WidgetClass)overrideShellWidgetClass, \
  1185.              (WidgetClass)shellWidgetClass, (XtEnum)0x20))
  1186. #define XtIsWMShell(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x40))
  1187. #define XtIsVendorShell(widget)    \
  1188.     (_XtIsSubclassOf(widget, (WidgetClass)vendorShellWidgetClass, \
  1189.              (WidgetClass)wmShellWidgetClass, (XtEnum)0x40))
  1190. #define XtIsTransientShell(widget) \
  1191.     (_XtIsSubclassOf(widget, (WidgetClass)transientShellWidgetClass, \
  1192.              (WidgetClass)wmShellWidgetClass, (XtEnum)0x40))
  1193. #define XtIsTopLevelShell(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x80))
  1194. #define XtIsApplicationShell(widget) \
  1195.     (_XtIsSubclassOf(widget, (WidgetClass)applicationShellWidgetClass, \
  1196.              (WidgetClass)topLevelShellWidgetClass, (XtEnum)0x80))
  1197.  
  1198. extern void XtRealizeWidget(
  1199. #if NeedFunctionPrototypes
  1200.     Widget         /* widget */
  1201. #endif
  1202. );
  1203.  
  1204. void XtUnrealizeWidget(
  1205. #if NeedFunctionPrototypes
  1206.     Widget         /* widget */
  1207. #endif
  1208. );
  1209.  
  1210. extern void XtDestroyWidget(
  1211. #if NeedFunctionPrototypes
  1212.     Widget         /* widget */
  1213. #endif
  1214. );
  1215.  
  1216. extern void XtSetSensitive(
  1217. #if NeedFunctionPrototypes
  1218.     Widget         /* widget */,
  1219.     _XtBoolean         /* sensitive */
  1220. #endif
  1221. );
  1222.  
  1223. extern void XtSetMappedWhenManaged(
  1224. #if NeedFunctionPrototypes
  1225.     Widget         /* widget */,
  1226.     _XtBoolean         /* mapped_when_managed */
  1227. #endif
  1228. );
  1229.  
  1230. extern Widget XtNameToWidget(
  1231. #if NeedFunctionPrototypes
  1232.     Widget         /* reference */,
  1233.     _Xconst _XtString    /* names */
  1234. #endif
  1235. );
  1236.  
  1237. extern Widget XtWindowToWidget(
  1238. #if NeedFunctionPrototypes
  1239.     Display*        /* display */,
  1240.     Window         /* window */
  1241. #endif
  1242. );
  1243.  
  1244. /***************************************************************
  1245.  *
  1246.  * Arg lists
  1247.  *
  1248.  ****************************************************************/
  1249.  
  1250.  
  1251. #define XtSetArg(arg, n, d) \
  1252.     ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) ))
  1253.  
  1254. extern ArgList XtMergeArgLists(
  1255. #if NeedFunctionPrototypes
  1256.     ArgList         /* args1 */,
  1257.     Cardinal         /* num_args1 */,
  1258.     ArgList         /* args2 */,
  1259.     Cardinal         /* num_args2 */
  1260. #endif
  1261. );
  1262.  
  1263. /***************************************************************
  1264.  *
  1265.  * Vararg lists
  1266.  *
  1267.  ****************************************************************/
  1268.  
  1269. #define XtVaNestedList  "XtVaNestedList"
  1270. #define XtVaTypedArg    "XtVaTypedArg"
  1271.  
  1272. extern XtVarArgsList XtVaCreateArgsList(
  1273. #if NeedVarargsPrototypes
  1274.     XtPointer        /*unused*/, ...
  1275. #endif
  1276. );
  1277.  
  1278. /*************************************************************
  1279.  *
  1280.  * Information routines
  1281.  *
  1282.  ************************************************************/
  1283.  
  1284. #ifndef _XtIntrinsicP_h
  1285.  
  1286. /* We're not included from the private file, so define these */
  1287.  
  1288. extern Display *XtDisplay(
  1289. #if NeedFunctionPrototypes
  1290.     Widget         /* widget */
  1291. #endif
  1292. );
  1293.  
  1294. extern Display *XtDisplayOfObject(
  1295. #if NeedFunctionPrototypes
  1296.     Widget         /* object */
  1297. #endif
  1298. );
  1299.  
  1300. extern Screen *XtScreen(
  1301. #if NeedFunctionPrototypes
  1302.     Widget         /* widget */
  1303. #endif
  1304. );
  1305.  
  1306. extern Screen *XtScreenOfObject(
  1307. #if NeedFunctionPrototypes
  1308.     Widget         /* object */
  1309. #endif
  1310. );
  1311.  
  1312. extern Window XtWindow(
  1313. #if NeedFunctionPrototypes
  1314.     Widget         /* widget */
  1315. #endif
  1316. );
  1317.  
  1318. extern Window XtWindowOfObject(
  1319. #if NeedFunctionPrototypes
  1320.     Widget         /* object */
  1321. #endif
  1322. );
  1323.  
  1324. extern String XtName(
  1325. #if NeedFunctionPrototypes
  1326.     Widget         /* object */
  1327. #endif
  1328. );
  1329.  
  1330. extern WidgetClass XtSuperclass(
  1331. #if NeedFunctionPrototypes
  1332.     Widget         /* object */
  1333. #endif
  1334. );
  1335.  
  1336. extern WidgetClass XtClass(
  1337. #if NeedFunctionPrototypes
  1338.     Widget         /* object */
  1339. #endif
  1340. );
  1341.  
  1342. extern Widget XtParent(
  1343. #if NeedFunctionPrototypes
  1344.     Widget         /* widget */
  1345. #endif
  1346. );
  1347.  
  1348. #endif /*_XtIntrinsicP_h*/
  1349.  
  1350. #define XtMapWidget(widget)    XMapWindow(XtDisplay(widget), XtWindow(widget))
  1351. #define XtUnmapWidget(widget)    \
  1352.         XUnmapWindow(XtDisplay(widget), XtWindow(widget))
  1353.  
  1354. extern void XtAddCallback(
  1355. #if NeedFunctionPrototypes
  1356.     Widget         /* widget */,
  1357.     _Xconst _XtString     /* callback_name */,
  1358.     XtCallbackProc     /* callback */,
  1359.     XtPointer         /* closure */
  1360. #endif
  1361. );
  1362.  
  1363. extern void XtRemoveCallback(
  1364. #if NeedFunctionPrototypes
  1365.     Widget         /* widget */,
  1366.     _Xconst _XtString     /* callback_name */,
  1367.     XtCallbackProc     /* callback */,
  1368.     XtPointer         /* closure */
  1369. #endif
  1370. );
  1371.  
  1372. extern void XtAddCallbacks(
  1373. #if NeedFunctionPrototypes
  1374.     Widget         /* widget */,
  1375.     _Xconst _XtString    /* callback_name */,
  1376.     XtCallbackList     /* callbacks */
  1377. #endif
  1378. );
  1379.  
  1380. extern void XtRemoveCallbacks(
  1381. #if NeedFunctionPrototypes
  1382.     Widget         /* widget */,
  1383.     _Xconst _XtString     /* callback_name */,
  1384.     XtCallbackList     /* callbacks */
  1385. #endif
  1386. );
  1387.  
  1388. extern void XtRemoveAllCallbacks(
  1389. #if NeedFunctionPrototypes
  1390.     Widget         /* widget */,
  1391.     _Xconst _XtString     /* callback_name */
  1392. #endif
  1393. );
  1394.  
  1395.  
  1396. extern void XtCallCallbacks(
  1397. #if NeedFunctionPrototypes
  1398.     Widget         /* widget */,
  1399.     _Xconst _XtString     /* callback_name */,
  1400.     XtPointer         /* call_data */
  1401. #endif
  1402. );
  1403.  
  1404. extern void XtCallCallbackList(
  1405. #if NeedFunctionPrototypes
  1406.     Widget        /* widget */,
  1407.     XtCallbackList     /* callbacks */,
  1408.     XtPointer         /* call_data */
  1409. #endif
  1410. );
  1411.  
  1412. extern XtCallbackStatus XtHasCallbacks(
  1413. #if NeedFunctionPrototypes
  1414.     Widget         /* widget */,
  1415.     _Xconst _XtString     /* callback_name */
  1416. #endif
  1417. );
  1418.  
  1419. /****************************************************************
  1420.  *
  1421.  * Geometry Management
  1422.  *
  1423.  ****************************************************************/
  1424.  
  1425.  
  1426. extern XtGeometryResult XtMakeGeometryRequest(
  1427. #if NeedFunctionPrototypes
  1428.     Widget         /* widget */,
  1429.     XtWidgetGeometry*    /* request */,
  1430.     XtWidgetGeometry*    /* reply_return */
  1431. #endif
  1432. );
  1433.  
  1434. extern XtGeometryResult XtQueryGeometry(
  1435. #if NeedFunctionPrototypes
  1436.     Widget         /* widget */,
  1437.     XtWidgetGeometry*    /* intended */,
  1438.     XtWidgetGeometry*    /* preferred_return */
  1439. #endif
  1440. );
  1441.  
  1442. extern Widget XtCreatePopupShell(
  1443. #if NeedFunctionPrototypes
  1444.     _Xconst _XtString    /* name */,
  1445.     WidgetClass     /* widgetClass */,
  1446.     Widget         /* parent */,
  1447.     ArgList         /* args */,
  1448.     Cardinal         /* num_args */
  1449. #endif
  1450. );
  1451.  
  1452. extern Widget XtVaCreatePopupShell(
  1453. #if NeedVarargsPrototypes
  1454.     _Xconst _XtString    /* name */,
  1455.     WidgetClass        /* widgetClass */,
  1456.     Widget        /* parent */,
  1457.     ...
  1458. #endif
  1459. );
  1460.  
  1461. extern void XtPopup(
  1462. #if NeedFunctionPrototypes
  1463.     Widget         /* popup_shell */,
  1464.     XtGrabKind         /* grab_kind */
  1465. #endif
  1466. );
  1467.  
  1468. extern void XtPopupSpringLoaded(
  1469. #if NeedFunctionPrototypes
  1470.     Widget         /* popup_shell */
  1471. #endif
  1472. );
  1473.  
  1474. extern void XtCallbackNone(
  1475. #if NeedFunctionPrototypes
  1476.     Widget         /* widget */,
  1477.     XtPointer         /* closure */,
  1478.     XtPointer         /* call_data */
  1479. #endif
  1480. );
  1481.  
  1482. extern void XtCallbackNonexclusive(
  1483. #if NeedFunctionPrototypes
  1484.     Widget         /* widget */,
  1485.     XtPointer         /* closure */,
  1486.     XtPointer         /* call_data */
  1487. #endif
  1488. );
  1489.  
  1490. extern void XtCallbackExclusive(
  1491. #if NeedFunctionPrototypes
  1492.     Widget         /* widget */,
  1493.     XtPointer         /* closure */,
  1494.     XtPointer         /* call_data */
  1495. #endif
  1496. );
  1497.  
  1498. extern void XtPopdown(
  1499. #if NeedFunctionPrototypes
  1500.     Widget         /* popup_shell */
  1501. #endif
  1502. );
  1503.  
  1504. extern void XtCallbackPopdown(
  1505. #if NeedFunctionPrototypes
  1506.     Widget         /* widget */,
  1507.     XtPointer         /* closure */,
  1508.     XtPointer         /* call_data */
  1509. #endif
  1510. );
  1511.  
  1512. extern void XtMenuPopupAction(
  1513. #if NeedFunctionPrototypes
  1514.     Widget         /* widget */,
  1515.     XEvent*        /* event */,
  1516.     String*        /* params */,
  1517.     Cardinal*        /* num_params */
  1518. #endif
  1519. );
  1520.  
  1521. extern Widget XtCreateWidget(
  1522. #if NeedFunctionPrototypes
  1523.     _Xconst _XtString     /* name */,
  1524.     WidgetClass     /* widget_class */,
  1525.     Widget         /* parent */,
  1526.     ArgList         /* args */,
  1527.     Cardinal         /* num_args */
  1528. #endif
  1529. );
  1530.  
  1531. extern Widget XtCreateManagedWidget(
  1532. #if NeedFunctionPrototypes
  1533.     _Xconst _XtString     /* name */,
  1534.     WidgetClass     /* widget_class */,
  1535.     Widget         /* parent */,
  1536.     ArgList         /* args */,
  1537.     Cardinal         /* num_args */
  1538. #endif
  1539. );
  1540.  
  1541. extern Widget XtVaCreateWidget(
  1542. #if NeedVarargsPrototypes
  1543.     _Xconst _XtString    /* name */,
  1544.     WidgetClass        /* widget */,
  1545.     Widget        /* parent */,
  1546.     ...
  1547. #endif
  1548. );
  1549.  
  1550. extern Widget XtVaCreateManagedWidget(
  1551. #if NeedVarargsPrototypes
  1552.     _Xconst _XtString    /* name */,
  1553.     WidgetClass        /* widget_class */,
  1554.     Widget        /* parent */,
  1555.     ...
  1556. #endif
  1557. );
  1558.  
  1559. extern Widget XtCreateApplicationShell( /* obsolete */
  1560. #if NeedFunctionPrototypes
  1561.     _Xconst _XtString     /* name */,
  1562.     WidgetClass     /* widget_class */,
  1563.     ArgList         /* args */,
  1564.     Cardinal         /* num_args */
  1565. #endif
  1566. );
  1567.  
  1568. extern Widget XtAppCreateShell(
  1569. #if NeedFunctionPrototypes
  1570.     _Xconst _XtString    /* application_name */,
  1571.     _Xconst _XtString    /* application_class */,
  1572.     WidgetClass     /* widget_class */,
  1573.     Display*        /* display */,
  1574.     ArgList         /* args */,
  1575.     Cardinal         /* num_args */
  1576. #endif
  1577. );
  1578.  
  1579. extern Widget XtVaAppCreateShell(
  1580. #if NeedVarargsPrototypes
  1581.     _Xconst _XtString    /* application_name */,
  1582.     _Xconst _XtString    /* application_class */,
  1583.     WidgetClass        /* widget_class */,
  1584.     Display*        /* display */,
  1585.     ...
  1586. #endif
  1587. );
  1588.  
  1589. /****************************************************************
  1590.  *
  1591.  * Toolkit initialization
  1592.  *
  1593.  ****************************************************************/
  1594.  
  1595. extern void XtToolkitInitialize(
  1596. #if NeedFunctionPrototypes
  1597.     void
  1598. #endif
  1599. );
  1600.  
  1601. extern XtLanguageProc XtSetLanguageProc(
  1602. #if NeedFunctionPrototypes
  1603.     XtAppContext    /* app_context */,
  1604.     XtLanguageProc    /* proc */,
  1605.     XtPointer        /* client_data */
  1606. #endif
  1607. );
  1608.  
  1609. extern void XtDisplayInitialize(
  1610. #if NeedFunctionPrototypes
  1611.     XtAppContext     /* app_context */,
  1612.     Display*        /* dpy */,
  1613.     _Xconst _XtString    /* application_name */,
  1614.     _Xconst _XtString    /* application_class */,
  1615.     XrmOptionDescRec*     /* options */,
  1616.     Cardinal         /* num_options */,
  1617.     int*        /* argc */,
  1618.     char**        /* argv */
  1619. #endif
  1620. );
  1621.  
  1622. extern Widget XtAppInitialize(
  1623. #if NeedFunctionPrototypes
  1624.     XtAppContext*    /* app_context_return */,
  1625.     _Xconst _XtString    /* application_class */,
  1626.     XrmOptionDescList     /* options */,
  1627.     Cardinal         /* num_options */,
  1628.     int*        /* argc_in_out */,
  1629.     String*        /* argv_in_out */,
  1630.     String*        /* fallback_resources */,
  1631.     ArgList         /* args */,
  1632.     Cardinal         /* num_args */
  1633. #endif
  1634. );
  1635.  
  1636. extern Widget XtVaAppInitialize(
  1637. #if NeedVarargsPrototypes
  1638.     XtAppContext*    /* app_context_return */,
  1639.     _Xconst _XtString    /* application_class */,
  1640.     XrmOptionDescList    /* options */,
  1641.     Cardinal        /* num_options */,
  1642.     int*        /* argc_in_out */,
  1643.     String*        /* argv_in_out */,
  1644.     String*        /* fallback_resources */,
  1645.     ...
  1646. #endif
  1647. );
  1648.  
  1649. extern Widget XtInitialize( /* obsolete */
  1650. #if NeedFunctionPrototypes
  1651.     _Xconst _XtString     /* shell_name */,
  1652.     _Xconst _XtString     /* application_class */,
  1653.     XrmOptionDescRec*     /* options */,
  1654.     Cardinal         /* num_options */,
  1655.     int*        /* argc */,
  1656.     char**        /* argv */
  1657. #endif
  1658. );
  1659.  
  1660. extern Display *XtOpenDisplay(
  1661. #if NeedFunctionPrototypes
  1662.     XtAppContext     /* app_context */,
  1663.     _Xconst _XtString    /* display_string */,
  1664.     _Xconst _XtString    /* application_name */,
  1665.     _Xconst _XtString    /* application_class */,
  1666.     XrmOptionDescRec*    /* options */,
  1667.     Cardinal         /* num_options */,
  1668.     int*        /* argc */,
  1669.     char**        /* argv */
  1670. #endif
  1671. );
  1672.  
  1673. extern XtAppContext XtCreateApplicationContext(
  1674. #if NeedFunctionPrototypes
  1675.     void
  1676. #endif
  1677. );
  1678.  
  1679. extern void XtAppSetFallbackResources(
  1680. #if NeedFunctionPrototypes
  1681.     XtAppContext     /* app_context */,
  1682.     String*        /* specification_list */
  1683. #endif
  1684. );
  1685.  
  1686. extern void XtDestroyApplicationContext(
  1687. #if NeedFunctionPrototypes
  1688.     XtAppContext     /* app_context */
  1689. #endif
  1690. );
  1691.  
  1692. extern void XtInitializeWidgetClass(
  1693. #if NeedFunctionPrototypes
  1694.     WidgetClass     /* widget_class */
  1695. #endif
  1696. );
  1697.  
  1698. extern XtAppContext XtWidgetToApplicationContext(
  1699. #if NeedFunctionPrototypes
  1700.     Widget         /* widget */
  1701. #endif
  1702. );
  1703.  
  1704. extern XtAppContext XtDisplayToApplicationContext(
  1705. #if NeedFunctionPrototypes
  1706.     Display*        /* dpy */
  1707. #endif
  1708. );
  1709.  
  1710. extern XrmDatabase XtDatabase(
  1711. #if NeedFunctionPrototypes
  1712.     Display*        /* dpy */
  1713. #endif
  1714. );
  1715.  
  1716. extern XrmDatabase XtScreenDatabase(
  1717. #if NeedFunctionPrototypes
  1718.     Screen*        /* screen */
  1719. #endif
  1720. );
  1721.  
  1722. extern void XtCloseDisplay(
  1723. #if NeedFunctionPrototypes
  1724.     Display*        /* dpy */
  1725. #endif
  1726. );
  1727.  
  1728. extern void XtGetApplicationResources(
  1729. #if NeedFunctionPrototypes
  1730.     Widget         /* widget */,
  1731.     XtPointer         /* base */,
  1732.     XtResourceList     /* resources */,
  1733.     Cardinal         /* num_resources */,
  1734.     ArgList         /* args */,
  1735.     Cardinal         /* num_args */
  1736. #endif
  1737. );
  1738.  
  1739. extern void XtVaGetApplicationResources(
  1740. #if NeedVarargsPrototypes
  1741.     Widget        /* widget */,
  1742.     XtPointer        /* base */,
  1743.     XtResourceList    /* resources */,
  1744.     Cardinal        /* num_resources */,
  1745.     ...
  1746. #endif
  1747. );
  1748.  
  1749. extern void XtGetSubresources(
  1750. #if NeedFunctionPrototypes
  1751.     Widget         /* widget */,
  1752.     XtPointer         /* base */,
  1753.     _Xconst _XtString     /* name */,
  1754.     _Xconst _XtString     /* class */,
  1755.     XtResourceList     /* resources */,
  1756.     Cardinal         /* num_resources */,
  1757.     ArgList         /* args */,
  1758.     Cardinal         /* num_args */
  1759. #endif
  1760. );
  1761.  
  1762. extern void XtVaGetSubresources(
  1763. #if NeedVarargsPrototypes
  1764.     Widget        /* widget */,
  1765.     XtPointer        /* base */,
  1766.     _Xconst _XtString    /* name */,
  1767.     _Xconst _XtString    /* class */,
  1768.     XtResourceList    /* resources */,
  1769.     Cardinal        /* num_resources */,
  1770.     ...
  1771. #endif
  1772. );
  1773.  
  1774. extern void XtSetValues(
  1775. #if NeedFunctionPrototypes
  1776.     Widget         /* widget */,
  1777.     ArgList         /* args */,
  1778.     Cardinal         /* num_args */
  1779. #endif
  1780. );
  1781.  
  1782. extern void XtVaSetValues(
  1783. #if NeedVarargsPrototypes
  1784.     Widget        /* widget */,
  1785.     ...
  1786. #endif
  1787. );
  1788.  
  1789. extern void XtGetValues(
  1790. #if NeedFunctionPrototypes
  1791.     Widget         /* widget */,
  1792.     ArgList         /* args */,
  1793.     Cardinal         /* num_args */
  1794. #endif
  1795. );
  1796.  
  1797. extern void XtVaGetValues(
  1798. #if NeedVarargsPrototypes
  1799.     Widget        /* widget */,
  1800.     ...
  1801. #endif
  1802. );
  1803.  
  1804. extern void XtSetSubvalues(
  1805. #if NeedFunctionPrototypes
  1806.     XtPointer         /* base */,
  1807.     XtResourceList     /* resources */,
  1808.     Cardinal         /* num_resources */,
  1809.     ArgList         /* args */,
  1810.     Cardinal         /* num_args */
  1811. #endif
  1812. );
  1813.  
  1814. extern void XtVaSetSubvalues(
  1815. #if NeedVarargsPrototypes
  1816.     XtPointer        /* base */,
  1817.     XtResourceList    /* resources */,
  1818.     Cardinal        /* num_resources */,
  1819.     ...
  1820. #endif
  1821. );
  1822.  
  1823. extern void XtGetSubvalues(
  1824. #if NeedFunctionPrototypes
  1825.     XtPointer         /* base */,
  1826.     XtResourceList     /* resources */,
  1827.     Cardinal         /* num_resources */,
  1828.     ArgList         /* args */,
  1829.     Cardinal         /* num_args */
  1830. #endif
  1831. );
  1832.  
  1833. extern void XtVaGetSubvalues(
  1834. #if NeedVarargsPrototypes
  1835.     XtPointer        /* base */,
  1836.     XtResourceList    /* resources */,
  1837.     Cardinal        /* num_resources */,
  1838.     ...
  1839. #endif
  1840. );
  1841.  
  1842. extern void XtGetResourceList(
  1843. #if NeedFunctionPrototypes
  1844.     WidgetClass     /* widget_class */,
  1845.     XtResourceList*    /* resources_return */,
  1846.     Cardinal*        /* num_resources_return */
  1847. #endif
  1848. );
  1849.  
  1850. extern void XtGetConstraintResourceList(
  1851. #if NeedFunctionPrototypes
  1852.     WidgetClass     /* widget_class */,
  1853.     XtResourceList*    /* resources_return */,
  1854.     Cardinal*        /* num_resources_return */
  1855. #endif
  1856. );
  1857.  
  1858. #define XtUnspecifiedPixmap    ((Pixmap)2)
  1859. #define XtUnspecifiedShellInt    (-1)
  1860. #define XtUnspecifiedWindow    ((Window)2)
  1861. #define XtUnspecifiedWindowGroup ((Window)3)
  1862. #define XtDefaultForeground    "XtDefaultForeground"
  1863. #define XtDefaultBackground    "XtDefaultBackground"
  1864. #define XtDefaultFont        "XtDefaultFont"
  1865. #define XtDefaultFontSet    "XtDefaultFontSet"
  1866.  
  1867. #if defined(CRAY) || defined(__arm)
  1868. #if __STDC__
  1869. #define XtOffset(p_type,field) _Offsetof(p_type,field)
  1870. #else
  1871. #ifdef CRAY2
  1872. #define XtOffset(p_type,field) \
  1873.     (sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))
  1874.  
  1875. #else    /* !CRAY2 */
  1876.  
  1877. #define XtOffset(p_type,field) ((unsigned int)&(((p_type)NULL)->field))
  1878.  
  1879. #endif    /* !CRAY2 */
  1880. #endif  /* __STDC__ */
  1881. #else    /* ! (CRAY || __arm) */
  1882.  
  1883. #define XtOffset(p_type,field) \
  1884.     ((Cardinal) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
  1885.  
  1886. #endif /* !CRAY */
  1887.  
  1888. #ifdef offsetof
  1889. #define XtOffsetOf(s_type,field) offsetof(s_type,field)
  1890. #else
  1891. #define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
  1892. #endif
  1893.  
  1894. /*************************************************************
  1895.  *
  1896.  * Error Handling
  1897.  *
  1898.  ************************************************************/
  1899.  
  1900. extern XtErrorMsgHandler XtAppSetErrorMsgHandler(
  1901. #if NeedFunctionPrototypes
  1902.     XtAppContext     /* app_context */,
  1903.     XtErrorMsgHandler     /* handler */
  1904. #endif
  1905. );
  1906.  
  1907. extern void XtSetErrorMsgHandler( /* obsolete */
  1908. #if NeedFunctionPrototypes
  1909.     XtErrorMsgHandler     /* handler */
  1910. #endif
  1911. );
  1912.  
  1913. extern XtErrorMsgHandler XtAppSetWarningMsgHandler(
  1914. #if NeedFunctionPrototypes
  1915.     XtAppContext     /* app_context */,
  1916.     XtErrorMsgHandler     /* handler */
  1917. #endif
  1918. );
  1919.  
  1920. extern void XtSetWarningMsgHandler( /* obsolete */
  1921. #if NeedFunctionPrototypes
  1922.     XtErrorMsgHandler     /* handler */
  1923. #endif
  1924. );
  1925.  
  1926. extern void XtAppErrorMsg(
  1927. #if NeedFunctionPrototypes
  1928.     XtAppContext     /* app_context */,
  1929.     _Xconst _XtString     /* name */,
  1930.     _Xconst _XtString    /* type */,
  1931.     _Xconst _XtString    /* class */,
  1932.     _Xconst _XtString    /* default */,
  1933.     String*        /* params */,
  1934.     Cardinal*        /* num_params */
  1935. #endif
  1936. );
  1937.  
  1938. extern void XtErrorMsg( /* obsolete */
  1939. #if NeedFunctionPrototypes
  1940.     _Xconst _XtString     /* name */,
  1941.     _Xconst _XtString    /* type */,
  1942.     _Xconst _XtString    /* class */,
  1943.     _Xconst _XtString    /* default */,
  1944.     String*        /* params */,
  1945.     Cardinal*        /* num_params */
  1946. #endif
  1947. );
  1948.  
  1949. extern void XtAppWarningMsg(
  1950. #if NeedFunctionPrototypes
  1951.     XtAppContext     /* app_context */,
  1952.     _Xconst _XtString     /* name */,
  1953.     _Xconst _XtString     /* type */,
  1954.     _Xconst _XtString     /* class */,
  1955.     _Xconst _XtString     /* default */,
  1956.     String*        /* params */,
  1957.     Cardinal*        /* num_params */
  1958. #endif
  1959. );
  1960.  
  1961. extern void XtWarningMsg( /* obsolete */
  1962. #if NeedFunctionPrototypes
  1963.     _Xconst _XtString    /* name */,
  1964.     _Xconst _XtString    /* type */,
  1965.     _Xconst _XtString    /* class */,
  1966.     _Xconst _XtString    /* default */,
  1967.     String*        /* params */,
  1968.     Cardinal*        /* num_params */
  1969. #endif
  1970. );
  1971.  
  1972. extern XtErrorHandler XtAppSetErrorHandler(
  1973. #if NeedFunctionPrototypes
  1974.     XtAppContext     /* app_context */,
  1975.     XtErrorHandler     /* handler */
  1976. #endif
  1977. );
  1978.  
  1979. extern void XtSetErrorHandler( /* obsolete */
  1980. #if NeedFunctionPrototypes
  1981.     XtErrorHandler     /* handler */
  1982. #endif
  1983. );
  1984.  
  1985. extern XtErrorHandler XtAppSetWarningHandler(
  1986. #if NeedFunctionPrototypes
  1987.     XtAppContext     /* app_context */,
  1988.     XtErrorHandler     /* handler */
  1989. #endif
  1990. );
  1991.  
  1992. extern void XtSetWarningHandler( /* obsolete */
  1993. #if NeedFunctionPrototypes
  1994.     XtErrorHandler     /* handler */
  1995. #endif
  1996. );
  1997.  
  1998. extern void XtAppError(
  1999. #if NeedFunctionPrototypes
  2000.     XtAppContext     /* app_context */,
  2001.     _Xconst _XtString    /* message */
  2002. #endif
  2003. );
  2004.  
  2005. extern void XtError( /* obsolete */
  2006. #if NeedFunctionPrototypes
  2007.     _Xconst _XtString    /* message */
  2008. #endif
  2009. );
  2010.  
  2011. extern void XtAppWarning(
  2012. #if NeedFunctionPrototypes
  2013.     XtAppContext     /* app_context */,
  2014.     _Xconst _XtString    /* message */
  2015. #endif
  2016. );
  2017.  
  2018. extern void XtWarning( /* obsolete */
  2019. #if NeedFunctionPrototypes
  2020.     _Xconst _XtString    /* message */
  2021. #endif
  2022. );
  2023.  
  2024. extern XrmDatabase *XtAppGetErrorDatabase(
  2025. #if NeedFunctionPrototypes
  2026.     XtAppContext     /* app_context */
  2027. #endif
  2028. );
  2029.  
  2030. extern XrmDatabase *XtGetErrorDatabase( /* obsolete */
  2031. #if NeedFunctionPrototypes
  2032.     void
  2033. #endif
  2034. );
  2035.  
  2036. extern void XtAppGetErrorDatabaseText(
  2037. #if NeedFunctionPrototypes
  2038.     XtAppContext     /* app_context */,
  2039.     _Xconst _XtString    /* name */,
  2040.     _Xconst _XtString    /* type */,
  2041.     _Xconst _XtString    /* class */,
  2042.     _Xconst _XtString     /* default */,
  2043.     String         /* buffer_return */,
  2044.     int         /* nbytes */,
  2045.     XrmDatabase     /* database */
  2046. #endif
  2047. );
  2048.  
  2049. extern void XtGetErrorDatabaseText( /* obsolete */
  2050. #if NeedFunctionPrototypes
  2051.     _Xconst _XtString    /* name */,
  2052.     _Xconst _XtString    /* type */,
  2053.     _Xconst _XtString    /* class */,
  2054.     _Xconst _XtString     /* default */,
  2055.     String         /* buffer_return */,
  2056.     int         /* nbytes */
  2057. #endif
  2058. );
  2059.  
  2060. /****************************************************************
  2061.  *
  2062.  * Memory Management
  2063.  *
  2064.  ****************************************************************/
  2065.  
  2066. extern char *XtMalloc(
  2067. #if NeedFunctionPrototypes
  2068.     Cardinal         /* size */
  2069. #endif
  2070. );
  2071.  
  2072. extern char *XtCalloc(
  2073. #if NeedFunctionPrototypes
  2074.     Cardinal        /* num */,
  2075.     Cardinal         /* size */
  2076. #endif
  2077. );
  2078.  
  2079. extern char *XtRealloc(
  2080. #if NeedFunctionPrototypes
  2081.     char*         /* ptr */,
  2082.     Cardinal         /* num */
  2083. #endif
  2084. );
  2085.  
  2086. extern void XtFree(
  2087. #if NeedFunctionPrototypes
  2088.     char*        /* ptr */
  2089. #endif
  2090. );
  2091.  
  2092. #ifdef XTTRACEMEMORY
  2093.  
  2094. extern char *_XtMalloc( /* implementation-private */
  2095. #if NeedFunctionPrototypes
  2096.     Cardinal    /* size */,
  2097.     char *    /* file */,
  2098.     int            /* line */
  2099. #endif               
  2100. );
  2101.  
  2102. extern char *_XtRealloc( /* implementation-private */
  2103. #if NeedFunctionPrototypes
  2104.     char *    /* ptr */,
  2105.     Cardinal    /* size */,
  2106.     char *    /* file */,
  2107.     int        /* line */
  2108. #endif
  2109. );
  2110.  
  2111. extern char *_XtCalloc( /* implementation-private */
  2112. #if NeedFunctionPrototypes
  2113.     Cardinal    /* num */,
  2114.     Cardinal     /* size */,
  2115.     char *    /* file */,
  2116.     int        /* line */
  2117. #endif
  2118. );
  2119.  
  2120. extern void _XtFree( /* implementation-private */
  2121. #if NeedFunctionPrototypes
  2122.     char *    /* ptr */
  2123. #endif
  2124. );
  2125.  
  2126. #define XtMalloc(size) _XtMalloc(size, __FILE__, __LINE__)
  2127. #define XtRealloc(ptr,size) _XtRealloc(ptr, size, __FILE__, __LINE__)
  2128. #define XtCalloc(num,size) _XtCalloc(num, size, __FILE__, __LINE__)
  2129. #define XtFree(ptr) _XtFree(ptr)
  2130.  
  2131. #endif /* ifdef XTTRACEMEMORY */
  2132.  
  2133. #define XtNew(type) ((type *) XtMalloc((unsigned) sizeof(type)))
  2134. #define XtNewString(str) \
  2135.     ((str) != NULL ? (strcpy(XtMalloc((unsigned)strlen(str) + 1), str)) : NULL)
  2136.  
  2137. /*************************************************************
  2138.  *
  2139.  *  Work procs
  2140.  *
  2141.  **************************************************************/
  2142.  
  2143. extern XtWorkProcId XtAddWorkProc( /* obsolete */
  2144. #if NeedFunctionPrototypes
  2145.     XtWorkProc         /* proc */,
  2146.     XtPointer         /* closure */
  2147. #endif
  2148. );
  2149.  
  2150. extern XtWorkProcId XtAppAddWorkProc(
  2151. #if NeedFunctionPrototypes
  2152.     XtAppContext     /* app_context */,
  2153.     XtWorkProc         /* proc */,
  2154.     XtPointer         /* closure */
  2155. #endif
  2156. );
  2157.  
  2158. extern void  XtRemoveWorkProc(
  2159. #if NeedFunctionPrototypes
  2160.     XtWorkProcId     /* id */
  2161. #endif
  2162. );
  2163.  
  2164.  
  2165. /****************************************************************
  2166.  *
  2167.  * Graphic Context Management
  2168.  *****************************************************************/
  2169.  
  2170. extern GC XtGetGC(
  2171. #if NeedFunctionPrototypes
  2172.     Widget         /* widget */,
  2173.     XtGCMask         /* valueMask */,
  2174.     XGCValues*         /* values */
  2175. #endif
  2176. );
  2177.  
  2178. extern GC XtAllocateGC(
  2179. #if NeedFunctionPrototypes
  2180.     Widget         /* widget */,
  2181.     Cardinal        /* depth */,
  2182.     XtGCMask         /* valueMask */,
  2183.     XGCValues*         /* values */,
  2184.     XtGCMask        /* dynamicMask */,
  2185.     XtGCMask        /* unusedMask */
  2186. #endif
  2187. );
  2188.  
  2189. /* This implementation of XtDestroyGC differs from the formal specification
  2190.  * for historic backwards compatibility reasons.  As other implementations
  2191.  * may conform to the spec, use of XtReleaseGC is strongly encouraged.
  2192.  */
  2193. extern void XtDestroyGC( /* obsolete */
  2194. #if NeedFunctionPrototypes
  2195.     GC             /* gc */
  2196. #endif
  2197. );
  2198.  
  2199. extern void XtReleaseGC(
  2200. #if NeedFunctionPrototypes
  2201.     Widget         /* object */,
  2202.     GC             /* gc */
  2203. #endif
  2204. );
  2205.  
  2206.  
  2207.  
  2208. extern void XtAppReleaseCacheRefs(
  2209. #if NeedFunctionPrototypes
  2210.     XtAppContext    /* app_context */,
  2211.     XtCacheRef*        /* cache_ref */
  2212. #endif
  2213. );
  2214.  
  2215. extern void XtCallbackReleaseCacheRef(
  2216. #if NeedFunctionPrototypes
  2217.     Widget         /* widget */,
  2218.     XtPointer         /* closure */,    /* XtCacheRef */
  2219.     XtPointer         /* call_data */
  2220. #endif
  2221. );
  2222.  
  2223. extern void XtCallbackReleaseCacheRefList(
  2224. #if NeedFunctionPrototypes
  2225.     Widget         /* widget */,
  2226.     XtPointer         /* closure */,    /* XtCacheRef* */
  2227.     XtPointer         /* call_data */
  2228. #endif
  2229. );
  2230.  
  2231. extern void XtSetWMColormapWindows(
  2232. #if NeedFunctionPrototypes
  2233.     Widget         /* widget */,
  2234.     Widget*        /* list */,
  2235.     Cardinal        /* count */
  2236. #endif
  2237. );
  2238.  
  2239. extern String XtFindFile(
  2240. #if NeedFunctionPrototypes
  2241.     _Xconst _XtString    /* path */,
  2242.     Substitution    /* substitutions */,
  2243.     Cardinal         /* num_substitutions */,
  2244.     XtFilePredicate    /* predicate */
  2245. #endif
  2246. );
  2247.  
  2248. extern String XtResolvePathname(
  2249. #if NeedFunctionPrototypes
  2250.     Display*        /* dpy */,
  2251.     _Xconst _XtString    /* type */,
  2252.     _Xconst _XtString    /* filename */,
  2253.     _Xconst _XtString    /* suffix */,
  2254.     _Xconst _XtString    /* path */,
  2255.     Substitution    /* substitutions */,
  2256.     Cardinal        /* num_substitutions */,
  2257.     XtFilePredicate     /* predicate */
  2258. #endif
  2259. );
  2260.  
  2261. /****************************************************************
  2262.  *
  2263.  * Selections
  2264.  *
  2265.  *****************************************************************/
  2266.  
  2267. #define XT_CONVERT_FAIL (Atom)0x80000001
  2268.     
  2269. extern void XtDisownSelection(
  2270. #if NeedFunctionPrototypes
  2271.     Widget         /* widget */,
  2272.     Atom         /* selection */,
  2273.     Time         /* time */
  2274. #endif
  2275. );
  2276.  
  2277. extern void XtGetSelectionValue(
  2278. #if NeedFunctionPrototypes
  2279.     Widget         /* widget */,
  2280.     Atom         /* selection */,
  2281.     Atom         /* target */,
  2282.     XtSelectionCallbackProc /* callback */,
  2283.     XtPointer         /* closure */,
  2284.     Time         /* time */
  2285. #endif
  2286. );
  2287.  
  2288. extern void XtGetSelectionValues(
  2289. #if NeedFunctionPrototypes
  2290.     Widget         /* widget */,
  2291.     Atom         /* selection */,
  2292.     Atom*        /* targets */,
  2293.     int         /* count */,
  2294.     XtSelectionCallbackProc /* callback */,
  2295.     XtPointer*        /* closures */,
  2296.     Time         /* time */
  2297. #endif
  2298. );
  2299.  
  2300. extern void XtAppSetSelectionTimeout(
  2301. #if NeedFunctionPrototypes
  2302.     XtAppContext     /* app_context */,
  2303.     unsigned long     /* timeout */
  2304. #endif
  2305. );
  2306.  
  2307. extern void XtSetSelectionTimeout( /* obsolete */
  2308. #if NeedFunctionPrototypes
  2309.     unsigned long     /* timeout */
  2310. #endif
  2311. );
  2312.  
  2313. extern unsigned long XtAppGetSelectionTimeout(
  2314. #if NeedFunctionPrototypes
  2315.     XtAppContext     /* app_context */
  2316. #endif
  2317. );
  2318.  
  2319. extern unsigned long XtGetSelectionTimeout( /* obsolete */
  2320. #if NeedFunctionPrototypes
  2321.     void
  2322. #endif
  2323. );
  2324.  
  2325. extern XSelectionRequestEvent *XtGetSelectionRequest(
  2326. #if NeedFunctionPrototypes
  2327.     Widget         /* widget */,
  2328.     Atom         /* selection */,
  2329.     XtRequestId     /* request_id */
  2330. #endif
  2331. );
  2332.  
  2333. extern void XtGetSelectionValueIncremental(
  2334. #if NeedFunctionPrototypes
  2335.     Widget         /* widget */,
  2336.     Atom         /* selection */,
  2337.     Atom         /* target */,
  2338.     XtSelectionCallbackProc /* selection_callback */,
  2339.     XtPointer         /* client_data */,
  2340.     Time         /* time */
  2341. #endif
  2342. );
  2343.  
  2344. extern void XtGetSelectionValuesIncremental(
  2345. #if NeedFunctionPrototypes
  2346.     Widget         /* widget */,
  2347.     Atom         /* selection */,
  2348.     Atom*        /* targets */,
  2349.     int         /* count */,
  2350.     XtSelectionCallbackProc /* callback */,
  2351.     XtPointer*        /* client_data */,
  2352.     Time         /* time */
  2353. #endif
  2354. );
  2355.  
  2356. extern void XtGrabKey(
  2357. #if NeedFunctionPrototypes
  2358.     Widget         /* widget */,
  2359.     _XtKeyCode         /* keycode */,
  2360.     Modifiers         /* modifiers */,
  2361.     _XtBoolean         /* owner_events */,
  2362.     int         /* pointer_mode */,
  2363.     int         /* keyboard_mode */
  2364. #endif
  2365. );
  2366.  
  2367. extern void XtUngrabKey(
  2368. #if NeedFunctionPrototypes
  2369.     Widget         /* widget */,
  2370.     _XtKeyCode         /* keycode */,
  2371.     Modifiers         /* modifiers */
  2372. #endif
  2373. );
  2374.  
  2375. extern int XtGrabKeyboard(
  2376. #if NeedFunctionPrototypes
  2377.     Widget         /* widget */,
  2378.     _XtBoolean         /* owner_events */,
  2379.     int         /* pointer_mode */,
  2380.     int         /* keyboard_mode */,
  2381.     Time         /* time */
  2382. #endif
  2383. );
  2384.  
  2385. extern void XtUngrabKeyboard(
  2386. #if NeedFunctionPrototypes
  2387.     Widget         /* widget */,
  2388.     Time         /* time */
  2389. #endif
  2390. );
  2391.  
  2392. extern void XtGrabButton(
  2393. #if NeedFunctionPrototypes
  2394.     Widget         /* widget */,
  2395.     int         /* button */,
  2396.     Modifiers         /* modifiers */,
  2397.     _XtBoolean         /* owner_events */,
  2398.     unsigned int    /* event_mask */,
  2399.     int         /* pointer_mode */,
  2400.     int         /* keyboard_mode */,
  2401.     Window         /* confine_to */,
  2402.     Cursor         /* cursor */
  2403. #endif
  2404. );
  2405.  
  2406. extern void XtUngrabButton(
  2407. #if NeedFunctionPrototypes
  2408.     Widget         /* widget */,
  2409.     unsigned int    /* button */,
  2410.     Modifiers         /* modifiers */
  2411. #endif
  2412. );
  2413.  
  2414. extern int XtGrabPointer(
  2415. #if NeedFunctionPrototypes
  2416.     Widget         /* widget */,
  2417.     _XtBoolean         /* owner_events */,
  2418.     unsigned int    /* event_mask */,
  2419.     int         /* pointer_mode */,
  2420.     int         /* keyboard_mode */,
  2421.     Window         /* confine_to */,
  2422.     Cursor         /* cursor */,
  2423.     Time         /* time */
  2424. #endif
  2425. );
  2426.  
  2427. extern void XtUngrabPointer(
  2428. #if NeedFunctionPrototypes
  2429.     Widget         /* widget */,
  2430.     Time         /* time */
  2431. #endif
  2432. );
  2433.  
  2434. extern void XtGetApplicationNameAndClass(
  2435. #if NeedFunctionPrototypes
  2436.     Display*        /* dpy */,
  2437.     String*        /* name_return */,
  2438.     String*        /* class_return */
  2439. #endif
  2440. );
  2441.  
  2442.  
  2443. /*
  2444.  *    Predefined Resource Converters
  2445.  */
  2446.  
  2447.  
  2448. /* String converters */
  2449.  
  2450. extern Boolean XtCvtStringToAcceleratorTable(
  2451. #if NeedFunctionPrototypes
  2452.     Display*    /* dpy */,
  2453.     XrmValuePtr /* args */,    /* none */
  2454.     Cardinal*   /* num_args */,    
  2455.     XrmValuePtr    /* fromVal */,
  2456.     XrmValuePtr    /* toVal */,
  2457.     XtPointer*    /* closure_ret */
  2458. #endif
  2459. );
  2460.  
  2461. extern Boolean XtCvtStringToAtom(
  2462. #if NeedFunctionPrototypes
  2463.     Display*    /* dpy */,
  2464.     XrmValuePtr /* args */,    /* Display */
  2465.     Cardinal*   /* num_args */,    
  2466.     XrmValuePtr    /* fromVal */,
  2467.     XrmValuePtr    /* toVal */,
  2468.     XtPointer*    /* closure_ret */
  2469. #endif
  2470. );
  2471.  
  2472. extern Boolean XtCvtStringToBoolean(
  2473. #if NeedFunctionPrototypes
  2474.     Display*    /* dpy */,
  2475.     XrmValuePtr /* args */,    /* none */
  2476.     Cardinal*   /* num_args */,    
  2477.     XrmValuePtr    /* fromVal */,
  2478.     XrmValuePtr    /* toVal */,
  2479.     XtPointer*    /* closure_ret */
  2480. #endif
  2481. );
  2482.  
  2483. extern Boolean XtCvtStringToBool(
  2484. #if NeedFunctionPrototypes
  2485.     Display*    /* dpy */,
  2486.     XrmValuePtr /* args */,    /* none */
  2487.     Cardinal*   /* num_args */,    
  2488.     XrmValuePtr    /* fromVal */,
  2489.     XrmValuePtr    /* toVal */,
  2490.     XtPointer*    /* closure_ret */
  2491. #endif
  2492. );
  2493.  
  2494. extern Boolean XtCvtStringToCursor(
  2495. #if NeedFunctionPrototypes
  2496.     Display*    /* dpy */,
  2497.     XrmValuePtr /* args */,    /* Display */
  2498.     Cardinal*   /* num_args */,    
  2499.     XrmValuePtr    /* fromVal */,
  2500.     XrmValuePtr    /* toVal */,
  2501.     XtPointer*    /* closure_ret */
  2502. #endif
  2503. );
  2504.  
  2505. extern Boolean XtCvtStringToDimension(
  2506. #if NeedFunctionPrototypes
  2507.     Display*    /* dpy */,
  2508.     XrmValuePtr /* args */,    /* none */
  2509.     Cardinal*   /* num_args */,    
  2510.     XrmValuePtr    /* fromVal */,
  2511.     XrmValuePtr    /* toVal */,
  2512.     XtPointer*    /* closure_ret */
  2513. #endif
  2514. );
  2515.  
  2516. extern Boolean XtCvtStringToDisplay(
  2517. #if NeedFunctionPrototypes
  2518.     Display*    /* dpy */,
  2519.     XrmValuePtr /* args */,    /* none */
  2520.     Cardinal*   /* num_args */,    
  2521.     XrmValuePtr    /* fromVal */,
  2522.     XrmValuePtr    /* toVal */,
  2523.     XtPointer*    /* closure_ret */
  2524. #endif
  2525. );
  2526.  
  2527. extern Boolean XtCvtStringToFile(
  2528. #if NeedFunctionPrototypes
  2529.     Display*    /* dpy */,
  2530.     XrmValuePtr /* args */,    /* none */
  2531.     Cardinal*   /* num_args */,    
  2532.     XrmValuePtr    /* fromVal */,
  2533.     XrmValuePtr    /* toVal */,
  2534.     XtPointer*    /* closure_ret */
  2535. #endif
  2536. );
  2537.  
  2538. extern Boolean XtCvtStringToFloat(
  2539. #if NeedFunctionPrototypes
  2540.     Display*    /* dpy */,
  2541.     XrmValuePtr /* args */,    /* none */
  2542.     Cardinal*   /* num_args */,    
  2543.     XrmValuePtr    /* fromVal */,
  2544.     XrmValuePtr    /* toVal */,
  2545.     XtPointer*    /* closure_ret */
  2546. #endif
  2547. );
  2548.  
  2549. extern Boolean XtCvtStringToFont(
  2550. #if NeedFunctionPrototypes
  2551.     Display*    /* dpy */,
  2552.     XrmValuePtr /* args */,    /* Display */
  2553.     Cardinal*   /* num_args */,    
  2554.     XrmValuePtr    /* fromVal */,
  2555.     XrmValuePtr    /* toVal */,
  2556.     XtPointer*    /* closure_ret */
  2557. #endif
  2558. );
  2559.  
  2560. extern Boolean XtCvtStringToFontSet(
  2561. #if NeedFunctionPrototypes
  2562.     Display*    /* dpy */,
  2563.     XrmValuePtr /* args */,    /* Display, locale */
  2564.     Cardinal*   /* num_args */,    
  2565.     XrmValuePtr    /* fromVal */,
  2566.     XrmValuePtr    /* toVal */,
  2567.     XtPointer*    /* closure_ret */
  2568. #endif
  2569. );
  2570.  
  2571. extern Boolean XtCvtStringToFontStruct(
  2572. #if NeedFunctionPrototypes
  2573.     Display*    /* dpy */,
  2574.     XrmValuePtr /* args */,    /* Display */
  2575.     Cardinal*   /* num_args */,    
  2576.     XrmValuePtr    /* fromVal */,
  2577.     XrmValuePtr    /* toVal */,
  2578.     XtPointer*    /* closure_ret */
  2579. #endif
  2580. );
  2581.  
  2582. extern Boolean XtCvtStringToInt(
  2583. #if NeedFunctionPrototypes
  2584.     Display*    /* dpy */,
  2585.     XrmValuePtr /* args */,    /* none */
  2586.     Cardinal*   /* num_args */,    
  2587.     XrmValuePtr    /* fromVal */,
  2588.     XrmValuePtr    /* toVal */,
  2589.     XtPointer*    /* closure_ret */
  2590. #endif
  2591. );
  2592.  
  2593. extern Boolean XtCvtStringToInitialState(
  2594. #if NeedFunctionPrototypes
  2595.     Display*    /* dpy */,
  2596.     XrmValuePtr /* args */,    /* none */
  2597.     Cardinal*   /* num_args */,    
  2598.     XrmValuePtr    /* fromVal */,
  2599.     XrmValuePtr    /* toVal */,
  2600.     XtPointer*    /* closure_ret */
  2601. #endif
  2602. );
  2603.  
  2604. extern Boolean XtCvtStringToPixel(
  2605. #if NeedFunctionPrototypes
  2606.     Display*    /* dpy */,
  2607.     XrmValuePtr /* args */,    /* Screen, Colormap */
  2608.     Cardinal*   /* num_args */,    
  2609.     XrmValuePtr    /* fromVal */,
  2610.     XrmValuePtr    /* toVal */,
  2611.     XtPointer*    /* closure_ret */
  2612. #endif
  2613. );
  2614.  
  2615. #define XtCvtStringToPosition XtCvtStringToShort
  2616.  
  2617. extern Boolean XtCvtStringToShort(
  2618. #if NeedFunctionPrototypes
  2619.     Display*    /* dpy */,
  2620.     XrmValuePtr /* args */,    /* none */
  2621.     Cardinal*   /* num_args */,    
  2622.     XrmValuePtr    /* fromVal */,
  2623.     XrmValuePtr    /* toVal */,
  2624.     XtPointer*    /* closure_ret */
  2625. #endif
  2626. );
  2627.  
  2628. extern Boolean XtCvtStringToTranslationTable(
  2629. #if NeedFunctionPrototypes
  2630.     Display*    /* dpy */,
  2631.     XrmValuePtr /* args */,    /* none */
  2632.     Cardinal*   /* num_args */,    
  2633.     XrmValuePtr    /* fromVal */,
  2634.     XrmValuePtr    /* toVal */,
  2635.     XtPointer*    /* closure_ret */
  2636. #endif
  2637. );
  2638.  
  2639. extern Boolean XtCvtStringToUnsignedChar(
  2640. #if NeedFunctionPrototypes
  2641.     Display*    /* dpy */,
  2642.     XrmValuePtr /* args */,    /* none */
  2643.     Cardinal*   /* num_args */,    
  2644.     XrmValuePtr    /* fromVal */,
  2645.     XrmValuePtr    /* toVal */,
  2646.     XtPointer*    /* closure_ret */
  2647. #endif
  2648. );
  2649.  
  2650. extern Boolean XtCvtStringToVisual(
  2651. #if NeedFunctionPrototypes
  2652.     Display*    /* dpy */,
  2653.     XrmValuePtr /* args */,    /* Screen, depth */
  2654.     Cardinal*   /* num_args */,    
  2655.     XrmValuePtr    /* fromVal */,
  2656.     XrmValuePtr    /* toVal */,
  2657.     XtPointer*    /* closure_ret */
  2658. #endif
  2659. );
  2660.  
  2661. /* int converters */
  2662.  
  2663. extern Boolean XtCvtIntToBoolean(
  2664. #if NeedFunctionPrototypes
  2665.     Display*    /* dpy */,
  2666.     XrmValuePtr /* args */,    /* none */
  2667.     Cardinal*   /* num_args */,    
  2668.     XrmValuePtr    /* fromVal */,
  2669.     XrmValuePtr    /* toVal */,
  2670.     XtPointer*    /* closure_ret */
  2671. #endif
  2672. );
  2673.  
  2674. extern Boolean XtCvtIntToBool(
  2675. #if NeedFunctionPrototypes
  2676.     Display*    /* dpy */,
  2677.     XrmValuePtr /* args */,    /* none */
  2678.     Cardinal*   /* num_args */,    
  2679.     XrmValuePtr    /* fromVal */,
  2680.     XrmValuePtr    /* toVal */,
  2681.     XtPointer*    /* closure_ret */
  2682. #endif
  2683. );
  2684.  
  2685. extern Boolean XtCvtIntToColor(
  2686. #if NeedFunctionPrototypes
  2687.     Display*    /* dpy */,
  2688.     XrmValuePtr /* args */,    /* Screen, Colormap */
  2689.     Cardinal*   /* num_args */,    
  2690.     XrmValuePtr    /* fromVal */,
  2691.     XrmValuePtr    /* toVal */,
  2692.     XtPointer*    /* closure_ret */
  2693. #endif
  2694. );
  2695.  
  2696. #define XtCvtIntToDimension XtCvtIntToShort
  2697.  
  2698. extern Boolean XtCvtIntToFloat(
  2699. #if NeedFunctionPrototypes
  2700.     Display*    /* dpy */,
  2701.     XrmValuePtr /* args */,    /* none */
  2702.     Cardinal*   /* num_args */,    
  2703.     XrmValuePtr    /* fromVal */,
  2704.     XrmValuePtr    /* toVal */,
  2705.     XtPointer*    /* closure_ret */
  2706. #endif
  2707. );
  2708.  
  2709. extern Boolean XtCvtIntToFont(
  2710. #if NeedFunctionPrototypes
  2711.     Display*    /* dpy */,
  2712.     XrmValuePtr /* args */,    /* none */
  2713.     Cardinal*   /* num_args */,    
  2714.     XrmValuePtr    /* fromVal */,
  2715.     XrmValuePtr    /* toVal */,
  2716.     XtPointer*    /* closure_ret */
  2717. #endif
  2718. );
  2719.  
  2720. extern Boolean XtCvtIntToPixel(
  2721. #if NeedFunctionPrototypes
  2722.     Display*    /* dpy */,
  2723.     XrmValuePtr /* args */,    /* none */
  2724.     Cardinal*   /* num_args */,    
  2725.     XrmValuePtr    /* fromVal */,
  2726.     XrmValuePtr    /* toVal */,
  2727.     XtPointer*    /* closure_ret */
  2728. #endif
  2729. );
  2730.  
  2731. extern Boolean XtCvtIntToPixmap(
  2732. #if NeedFunctionPrototypes
  2733.     Display*    /* dpy */,
  2734.     XrmValuePtr /* args */,    /* none */
  2735.     Cardinal*   /* num_args */,    
  2736.     XrmValuePtr    /* fromVal */,
  2737.     XrmValuePtr    /* toVal */,
  2738.     XtPointer*    /* closure_ret */
  2739. #endif
  2740. );
  2741.  
  2742. #define XtCvtIntToPosition XtCvtIntToShort
  2743.  
  2744. extern Boolean XtCvtIntToShort(
  2745. #if NeedFunctionPrototypes
  2746.     Display*    /* dpy */,
  2747.     XrmValuePtr /* args */,    /* none */
  2748.     Cardinal*   /* num_args */,    
  2749.     XrmValuePtr    /* fromVal */,
  2750.     XrmValuePtr    /* toVal */,
  2751.     XtPointer*    /* closure_ret */
  2752. #endif
  2753. );
  2754.  
  2755. extern Boolean XtCvtIntToUnsignedChar(
  2756. #if NeedFunctionPrototypes
  2757.     Display*    /* dpy */,
  2758.     XrmValuePtr /* args */,    /* none */
  2759.     Cardinal*   /* num_args */,    
  2760.     XrmValuePtr    /* fromVal */,
  2761.     XrmValuePtr    /* toVal */,
  2762.     XtPointer*    /* closure_ret */
  2763. #endif
  2764. );
  2765.  
  2766. /* Color converter */
  2767.  
  2768. extern Boolean XtCvtColorToPixel(
  2769. #if NeedFunctionPrototypes
  2770.     Display*    /* dpy */,
  2771.     XrmValuePtr /* args */,    /* none */
  2772.     Cardinal*   /* num_args */,    
  2773.     XrmValuePtr    /* fromVal */,
  2774.     XrmValuePtr    /* toVal */,
  2775.     XtPointer*    /* closure_ret */
  2776. #endif
  2777. );
  2778.  
  2779. /* Pixel converter */
  2780.  
  2781. #define XtCvtPixelToColor XtCvtIntToColor
  2782.  
  2783.  
  2784. _XFUNCPROTOEND
  2785.  
  2786. #endif /*_XtIntrinsic_h*/
  2787. /* DON'T ADD STUFF AFTER THIS #endif */
  2788.